File statements perform actions on and return values from files and directories.
Note: QA Wizard Pro uses full paths to search for files and directories referenced in scripts. See Identifying files and directories in statements for information about configuring full paths relative to the workspace or script directory.
| Statement | Description |
|---|---|
| AppendToFile | Appends text to a file. Creates the file if it does not exist. |
| CombinePaths | Combines two directory paths into one and returns the combined path. |
| CompareFileContents | Returns True or False to indicate if two files are identical. |
| CopyFile | Copies a file to a new location. |
| CreateDirectory | Creates a directory and subdirectories in a path. |
| CreateTempFile | Creates an empty temporary file and returns the full path. |
| DeleteDirectory | Deletes a directory. |
| DeleteFile | Deletes a file. |
| DirectoryExists | Returns True or False to indicate if a directory exists. |
| FileBaseName | Returns a filename without the extension or directory. |
| FileDateCreated | Returns the date and time a file or directory was created. |
| FileDateLastModified | Returns the date and time a file or directory was last modified. |
| FileDirectoryName | Returns the directory from a path from a file path or the parent directory path from a subdirectory path. |
| FileExists | Returns True or False to indicate if a file exists. |
| FileExtension | Returns a file extension, including the period, from a file path. |
| FileFullPath | Returns a full path to a file in a relative path. |
| FileName | Returns the filename and extension from a path. |
| FileReadOnly | Returns True or False to indicate if a file is read-only. |
| FileRootDirectoryName | Returns the root directory from a path. |
| FileSize | Returns the size of a file in bytes. |
| FileType | Returns the type of a file or directory. |
| GetCurDir
|
Returns the current working directory for QA Wizard Pro. |
| GetDirectory | Returns the path to a system or QA Wizard Pro directory. |
| GetDirectoryNames | Returns an array of all subdirectory names from a directory or only the subdirectory names that match a search pattern. |
| GetFileNames | Returns an array of all filenames from a directory or only the filenames that match a search pattern. |
| GetFilePath | Returns the file path to a QA Wizard Pro script or running application. |
| MoveDirectory | Moves or renames a directory. |
| MoveFile | Moves or renames a file. |
| ReadTextFile | Reads a text file and returns the contents to a variable. |
| SetAllFilesReadOnly | Sets or clears the read-only attribute on all files in a directory. |
| SetFileReadOnly | Sets or clears the read-only attribute on a file. |